package com.daxia.bumall.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * DesignerInfo
 */
@Entity
@Table(name = "designerinfo") 
public class DesignerInfo extends BaseModel {
	/**
	 * id
	 */
	@Id
	@GeneratedValue
	@Column(name = "id")
    private Long id;
	@ManyToOne
	@JoinColumn(name = "user_id")
    private User user;
	/**
	 * 邮箱
	 */
	@Column(name = "email")
    private String email;
	/**
	 * 公司名称
	 */
	@Column(name = "companyName")
    private String companyName;
	/**
	 * 公司注册地址
	 */
	@Column(name = "registerAddress")
    private String registerAddress;
	/**
	 * 公司办公地址
	 */
	@Column(name = "officeAddress")
    private String officeAddress;
	/**
	 * 从业年限
	 */
	@Column(name = "workAge")
    private String workAge;
	/**
	 * 擅长风格
	 */
	@Column(name = "goodAtStyles")
    private String goodAtStyles;
	/**
	 * 设计作品图片
	 */
	@Column(name = "designImages")
    private String designImages;
	/**
	 * 设计作品备注
	 */
	@Column(name = "designRemark")
    private String designRemark;
	/**
	 * 状态
	 */
	@Column(name = "status")
    private Integer status;
	/**
	 * 审核人
	 */
	@Column(name = "auditUser")
    private String auditUser;
	/**
	 * 审核时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")	
	@Column(name = "auditTime")
    private Date auditTime;
	/**
	 * 审核备注
	 */
	@Column(name = "auditRemark")
    private String auditRemark;
	/**
	 * 创建时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")	
	@Column(name = "createTime")
    private Date createTime;
	
	public Long getId() {
    	return id;
    }
	
    public void setId(Long id) {
    	this.id = id;
    }
	
	public String getEmail() {
    	return email;
    }
	
    public void setEmail(String email) {
    	this.email = email;
    }
	
	public String getCompanyName() {
    	return companyName;
    }
	
    public void setCompanyName(String companyName) {
    	this.companyName = companyName;
    }
	
	public String getRegisterAddress() {
    	return registerAddress;
    }
	
    public void setRegisterAddress(String registerAddress) {
    	this.registerAddress = registerAddress;
    }
	
	public String getOfficeAddress() {
    	return officeAddress;
    }
	
    public void setOfficeAddress(String officeAddress) {
    	this.officeAddress = officeAddress;
    }
	
	public String getWorkAge() {
    	return workAge;
    }
	
    public void setWorkAge(String workAge) {
    	this.workAge = workAge;
    }
	
	public String getGoodAtStyles() {
    	return goodAtStyles;
    }
	
    public void setGoodAtStyles(String goodAtStyles) {
    	this.goodAtStyles = goodAtStyles;
    }
	
	public String getDesignImages() {
    	return designImages;
    }
	
    public void setDesignImages(String designImages) {
    	this.designImages = designImages;
    }
	
	public String getDesignRemark() {
    	return designRemark;
    }
	
    public void setDesignRemark(String designRemark) {
    	this.designRemark = designRemark;
    }
	
	public Integer getStatus() {
    	return status;
    }
	
    public void setStatus(Integer status) {
    	this.status = status;
    }
	
	public String getAuditUser() {
    	return auditUser;
    }
	
    public void setAuditUser(String auditUser) {
    	this.auditUser = auditUser;
    }
	
	public Date getAuditTime() {
    	return auditTime;
    }
	
    public void setAuditTime(Date auditTime) {
    	this.auditTime = auditTime;
    }
	
	public String getAuditRemark() {
    	return auditRemark;
    }
	
    public void setAuditRemark(String auditRemark) {
    	this.auditRemark = auditRemark;
    }
	
	public Date getCreateTime() {
    	return createTime;
    }
	
    public void setCreateTime(Date createTime) {
    	this.createTime = createTime;
    }

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
    
}
